Copyright © Power Slam Radio 2016-2025 All Rights Reserved
Website Design & Layout by Ron Haynes RTS Productions
// Replace with your SHOUTcast server IP and Port
const streamUrl = 'http://YOUR_SERVER_IP:PORT/stats?json=1';
fetch(streamUrl)
.then(response => response.json())
.then(data => {
// Current listeners
const listeners = data.CURRENTLISTENERS;
document.getElementById('listener-count').innerText = listeners;
// IP locations can be processed here
console.log('Active listeners:', listeners);
})
.catch(error => console.error('Error fetching stream:', error));